package com.example.administrator.zhjt.bean;

import android.database.Cursor;
import android.support.annotation.NonNull;
import android.widget.ImageView;

import com.example.administrator.zhjt.R;

import java.util.List;

/**
 * Created by Administrator on 2017/5/17 0017.
 */

public class Road implements Comparable<Road>{

    private int roadId;
    private int balance;

    public Road(){}

    public int getRoadId() {
        return roadId;
    }

    public void setRoadId(int roadId) {
        this.roadId = roadId;
    }

    public int getBalance() {
        return balance;
    }

    public void setBalance(int balance) {
        this.balance = balance;
    }

    @Override
    public int compareTo(@NonNull Road other) {
        if(balance < other.balance) return -1;
        if(balance == other.balance) return 0;
        if(balance > other.balance) return 1;
        return 0;
    }
}
